//请求响应的公共数据
export interface BaseRetData<T> {
  code: number,
  message: string,
  data: T | null
}

export interface PaginatedData<T> {
  records: T[]; //分页数据
  total: number; //数据总条数
  current: number; //当前页 从1开始
  size: number; //页大小
  pages: number //总页数
}

export interface PageReq {
  current?: number,
  size?: number,
}

export interface PaginatedResponse<T> extends BaseRetData<PaginatedData<T>> {}